package com.example.cc.server.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author wsy
 * @since 2025-01-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("cc_configurations")
@ApiModel(value="配置信息", description="")
public class Configurations implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "配置项唯一标识")
    @TableId(value = "config_id", type = IdType.AUTO)
    private Long configId;

    @ApiModelProperty(value = "应用ID")
    private Long appId;

    @ApiModelProperty(value = "环境ID")
    private Long envId;

    @ApiModelProperty(value = "配置键")
    private String key;

    @ApiModelProperty(value = "配置值")
    private String value;

    @ApiModelProperty(value = "配置分组")
    private String groupName;

    @ApiModelProperty(value = "配置值的数据类型")
    private String dataType;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "标签")
    private String tags;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updatedAt;

    @ApiModelProperty(value = "版本号")
    private Integer version;

    @ApiModelProperty(value = "发布状态")
    private String status;

    @ApiModelProperty(value = "是否加密")
    private Boolean encrypted;


}
